package com.tarena.lbs.attach.dao.repository.impl;

import com.tarena.lbs.attach.dao.repository.AttachConverter;
import com.tarena.lbs.attach.pojo.dto.AttachDTO;
import com.tarena.lbs.attach.pojo.vo.FileVO;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

@Component
public class AttachConverterImpl implements AttachConverter {
    @Override
    public FileVO assembleDtoToFileVo(AttachDTO attachDTO) {
        FileVO fileVO = new FileVO();
        BeanUtils.copyProperties(attachDTO, fileVO);
        return fileVO;
    }
}
